package com.yimixian.app.rest.api;

import com.ta.utdid2.android.utils.StringUtils;
import com.yimixian.app.model.SearchKeyResult;

import org.json.JSONObject;

import retrofit.Callback;
import retrofit.client.Response;

/**
 * Created by zhilian-2 on 2015/10/17.
 */
public class QuitLoginAPI extends YmxBaseAPI{

    public static final String QUITURL = "/v3/users/current/logout";
    private String token;

    public QuitLoginAPI(String token, Callback<Response> callback){
        super(callback);
        this.token = token;
    }
    @Override
    public String getRelativeURL() {
        return QUITURL;
    }

    public void toQuitLogin(){
        if (!StringUtils.isEmpty(token)){
            mYmxRestService.quitLogin(token, mCallback);
        }
    }

    @Override
    public Object parseJson(JSONObject jsonObject) {
        return null;
    }
}
